package com.bbkb.user;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.ImportResource;

@ImportResource(locations = {"classpath:dubbo-provider.xml"})
@MapperScan({"com.bbkb.user.dao"})
@SpringBootApplication
public class BbkbUserProviderApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(BbkbUserProviderApplication.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
        //java mail发邮件是附件名过长默认会被截断，主动设为false可正常显示附件名
//        System.setProperty("mail.mime.splitlongparameters", "false");
        return application.sources(BbkbUserProviderApplication.class);
    }

}
